package com.shop.po.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.shop.po.GoodsImage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 'banxia'
 * @version 1.0
 * @description TODO
 * @date 2023/2/24 12:11
 */
@Data
@ToString
public class GoodsInfo {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    private Long merchantId;

    @ApiModelProperty(value = "商家名称")
    private String merchantName;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品介绍")
    private String description;

    //    @ApiModelProperty(value = "分类id")
//    private Long categoryId;
//    @ApiModelProperty(value = "销售id")
//    private Long priceId;
    @ApiModelProperty(value = "库存")
    private Long count;

    @ApiModelProperty(value = "状态：1表示上架，0表示下架")
    private Integer type;

    //----------------------------------------------------------------
    //分类
    @ApiModelProperty(value = "分类名称")
    private String categoryName;
    //----------------------------------------------------------------
    //销售
    @ApiModelProperty(value = "原价：用分来表示，返回值用字符串表示即可")
    private Long oldPrice;

    @ApiModelProperty(value = "现价：用分来表示，返回值用字符串表示即可")
    private Long newPrice;

    @ApiModelProperty(value = "是否促销：1表示促销")
    private Integer isPromotion;

    @ApiModelProperty(value = "促销描述")
    private String promotionDescrption;
    //----------------------------------------------------------------
    //图片
    List<GoodsImage> imageList = new ArrayList<>();
//----------------------------------------------------------------
}
